//package demo;
//
//import java.io.File;
//import java.io.IOException;
//import java.util.HashMap;
//import java.util.Map;
//
//import org.apache.commons.httpclient.HttpException;
//import org.codehaus.jackson.JsonParseException;
//import org.codehaus.jackson.map.JsonMappingException;
//import org.codehaus.jackson.map.ObjectMapper;
//
//import com.surekam.hometown.util.remoteapi.HttpClientUtil;
//import com.surekam.hometown.util.remoteapi.json.Status;
//
//public class Main {
//	public static void main(String[] args) throws HttpException, IOException {
//		String serviceCode = "yl_20130708_0001";
//		String homeAppId = "1002";
//		Map<String, String> params = new HashMap<String, String>();
//		
//		params.put("infType", "1");
//		params.put("command", "P04-01");
//		params.put("systemCode", "S_80");
//		params.put("uuid", "t4fc9d08-a809-488a-b3ec-a88c4227ad8x");
//		params.put("loginId", "VUser201309131928520");
//		params.put("loginPwd", "e10adc3949ba59abbe56e057f20f883e");
//		
//		String str = HttpClientUtil.callService(serviceCode, homeAppId, params);
//		System.out.println(str);
//		
////		params.put("infType", "0");
////		params.put("command", "G02-02");
////		params.put("systemCode", "S_01");
////		params.put("pageSize", "20");
////		params.put("pageNo", "1");
////		String file = "E:/oschina_git/DiscuzUtilX2.5/discuz/src/main/java/com/surekam/hometown/util/remoteapi/entity.js";
////		FileReader fr = new FileReader(new File(file));
////		BufferedReader br = new BufferedReader(fr);
////		String line;
////		StringBuffer sb = new StringBuffer();
////		while((line =br.readLine())!=null){
////			sb.append(line);
////		}
////		JsonBinder binder = JsonBinder.buildNonDefaultBinder();
////		Status json = binder.fromJson(sb.toString(), Status.class);
////		System.out.println(sb.toString());
////		System.out.println(json);
//	}
//	
//	public static void formJson() throws JsonParseException, JsonMappingException, IOException{
//		String file = "E:/oschina_git/DiscuzUtilX2.5/discuz/src/main/java/com/surekam/hometown/util/remoteapi/entity.js";
//		ObjectMapper om = new ObjectMapper();
//		
//		Status value = om.readValue(new File(file), Status.class);
//		System.out.println(value);
//	}
//}
